home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3946 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.7 KB

  1. Path: fizban.solace.mh.se!usenet
  2. From: Mr 'Zap' Andersson <zap@lysator.liu.se>
  3. Newsgroups: comp.lang.pascal.borland,comp.lang.pascal.mac,comp.lang.pascal.ansi-iso,comp.lang.pascal.misc,comp.sys.amiga.programmer,comp.graphics.algorithms,comp.os.ms-windows.programmer.graphics,comp.sys.amiga.graphics
  4. Subject: Re: 3d programming
  5. Date: Thu, 15 Feb 1996 12:22:51 +0100
  6. Organization: GENIUS CAD Software (http://www.kuai.se/~zap/genius)
  7. Message-ID: <3123178B.7CD8@lysator.liu.se>
  8. References: <4f3od9$2jg@zeus.tcp.co.uk> <jderrick-0502961551360001@slip037.csc.cuhk.hk> <3118310E.52F@psu.edu> <4fiuh2$qrj@fulton.cs.unc.edu> <3120F507.31DFF4F5@gie.com> <4fs1n2$66@unix.midplains.net>
  9. NNTP-Posting-Host: @sl1.yin.kuai.se
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (WinNT; I)
  14.  
  15. >    I think everyone did not understand what the original poster
  16. > (Jonathan Cohn) was trying ti say. I Think he was asking what is the
  17. > minimal amount of information you need to define a plane in 3 space.
  18. > Everybody's knee jerk reaction to that is to say you need three points
  19. > or nine numbers (x1,y1,z1) - (x2,y2,z2 ) - (x3,y3,z3).
  20. >   He was pointing out that you can use less numbers to give the same
  21. > information. Thus stating you need two points or more to the point
  22. > just six numbers (x1,y1,z1) (vx1,vy1,vz1).  I am sure he knows the
  23. > difference between a point and vector.
  24. >   If this is what he was trying to say then I have to correct him and
  25. > say you only need four numbers to define a plane, the four
  26. > coefficients of the planer equation Ax + By + Cz + D = 0.
  27. > That is the minimal amount of info needed for a plane.
  28.  
  29. Not entirely true. Assume the length of the normal vector is 1, you can leave one 
  30. component out. I.e. C can be calculated from A and B.
  31.  
  32. So the *storage* needed is really only three numbers!
  33.  
  34. >   By the way (A,B,C) is the normal vector to the plane and D is the
  35. > distance from the origin to the plane along that normal.
  36.  
  37. Yep. And since the magnitude of the vector is of no importance to the correctness of 
  38. the function, assuming that magnitude is 1 eases things a lot...
  39.  
  40. -- 
  41. Hakan "Zap" Andersson | http://www.lysator.liu.se/~zap | Q: 0x2b | ~0x2B
  42. Job:  GCS Scandinavia | Fax:   +46 16 96014            | A: 42
  43. zap@lysator.liu.se    | Voice: +46 16 96460            | "Whirled Peas"
  44. ------------------------------------------------------------------------
  45. GENIUS - Mechanical Design for AutoCAD - http://www.kuai.se/~zap/genius
  46. ------------------------------------------------------------------------
  47. Never underestimate the bandwidth of a speeding truck full of DAT tapes.
  48. ------------------------------------------------------------------------
  49.